Size

interface Size

A pair of numbers that in general are used to define dimensions in the two-dimensional space.

Functions

Link copied to clipboard
open fun empty(): Size
Returns an empty Size with zero width and height.
Link copied to clipboard
open fun height(): Int
Returns the vertical dimension.
Link copied to clipboard
open fun isEmpty(): Boolean
Returns true if this size is empty.
Link copied to clipboard
open fun of(width: Int, height: Int): Size
Returns the Size instance for the given width and height values.
Link copied to clipboard
open fun width(): Int
Returns the horizontal dimension.